import cv2
from ultralytics import YOLO
import Config

model = YOLO(Config.hat_model)

img = './test_img/1931.jpg'
img = cv2.imread(img)
results = model(img)
for result in results:
    for det in result.boxes:
        print(det)

